<div class="title">{if $id != 0}Edit news{else}Add News{/if}</div>
<br /><br />

<form action="{$url}" method="post">
<input type="hidden" name="action" value="{if $id != 0}doSubmitEditNewsline{else}doSubmitAddNewsline{/if}" />
<input type="hidden" name="id" value="{$id}" />

<table border=0>
<tr class="{cycle values="dark,light"}">
	<td style="padding-right:5px; text-align:right;">News ID</td>
	<td>{$news.id_news}</td>
</tr>
<tr class="{cycle values="dark,light"}">
	<td style="padding-right:5px; text-align:right;">Date Create</td>
	<td>{$news.date_create|date_format:"%m/%d/%Y %I:%M %p"}</td>
</tr>
<tr class="{cycle values="dark,light"}">
	<td style="padding-right:5px; text-align:right;">Title:</td>
	<td><input type="text" name="title" value="{$news.title}" class="input_text" style="width:500px "/></td>
</tr>
<tr class="{cycle values="dark,light"}">
	<td style="padding-right:5px; text-align:right;" valign="top">Short Description:</td>
	<td><textarea cols="100" rows="5" name="short_description" class="input_text">{$news.short_description}</textarea></td>
</tr>
<tr class="{cycle values="dark,light"}">
	<td style="padding-right:5px; text-align:right;" valign="top">Text News:</td>
	<td>
	{$texteditor}
	{* <textarea cols="100" rows="20" name="text_news" class="input_text">{$news.text_news}</textarea> *}
	</td>
</tr>
<tr class="{cycle values="dark,light"}">
	<td style="padding-right:5px; text-align:right;">Author:</td>
	<td><input type="text" name="author" value="{$news.author}" class="input_text" style="width:500px "/></td>
</tr>
<tr class="{cycle values="dark,light"}">
	<td style="padding-right:5px; text-align:right;">E-mail:</td>
	<td><input type="text" name="email" value="{$news.email}" class="input_text" style="width:500px "/></td>
</tr>
<tr class="{cycle values="dark,light"}">
	<td style="padding-right:5px; text-align:right;">URL News:</td>
	<td><input type="text" name="url_news" value="{$news.url_news}" class="input_text" style="width:500px "/></td>
</tr>
<tr class="{cycle values="dark,light"}">
	<td style="padding-right:5px; text-align:right;">Active:</td>
	<td><input type="checkbox" name="active" {if $news.active} checked {/if} class="input_text" /></td>
</tr>
<tr class="{cycle values="dark,light"}">
	<td style="padding-right:5px; text-align:right;">&nbsp;</td>
	<td>
		<input type="submit" value=" Submit " class="button" />
		<input type="button" value=" Cancel " class="button" onClick="javascript : window.location.href = '?path=newslinelist'" />
	</td>
</tr>
</form>

</table>
